﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BuXiaChu.OrderDishes.Model;

namespace BuXiaChu.OrderDishes.BLL.ModelExtensions
{
    public static  class DeliveryAddressExtension
    {
        public static void GetUserInfoFrom(this DeliveryAddressModel source, UserInfoModel userInfo)
        {
            source.UserId = userInfo.UserId;
            source.Name = userInfo.Name;
            source.Gender = userInfo.Gender;
            source.Telephone = userInfo.Telephone;            
            source.MobileTelephone = userInfo.MobileTelephone;            
        }
    }
}
